var
  express = require('express'),
  app     = express(),
  poet    = require('poet')( app ),
  fs      = require('fs');

poet
  .createPostRoute()
  .createPageRoute()
  .createTagRoute()
  .createCategoryRoute()
  .init();

app.set( 'view engine', 'jade' );
app.set( 'views', __dirname + '/views' );
app.use( express.static( __dirname + '/public' ));
app.use( app.router );


app.get( '/', function ( req, res ) { res.render( 'gallery' ) });
app.get( '/blog', function ( req, res ) { res.render( 'index' ) });
app.get( '/about', function ( req, res ) { res.render( 'about' ) });
app.get( '/gallery', function ( req, res ) { res.render( 'gallery' ) });
app.get( '/disclaimer', function ( req, res ) { res.render( 'disclaimer' ) });



app.listen( 3088 );
